import time

from selenium import webdriver
from selenium.webdriver.common.by import By
'打开浏览器'
driver=webdriver.Chrome()
driver.get('https://mail.qq.com/')

#切换页面
driver.switch_to.frame('login_frame')
time.sleep(2)
driver.find_element(By.ID,'u').send_keys('11111')

#切换原始页面
driver.switch_to.default_content()
print(driver.find_element(By.CLASS_NAME,'login_pictures_title').text)


